﻿
<div class="modal-header">
    <h3 class="modal-title">供选择的查询条件</h3>
</div>
<div class="modal-body">
    <table class="table">
        <thead class="table table-bordered table-striped">
            <tr>
                <th>
                    选择
                    <!--<th ng-click="checked(item)">-->
                    <!--<input type="checkbox" ng-model="selectAll" ng-click="showCalendar()" />-->
                    <!--<span ng-hide="selectAll">全选</span>
                    <span ng-show="selectAll">取消全选</span>-->
                </th>
                <th>条件说明</th>
                <th>条件选择</th>
            </tr>
        </thead>
        <tbody ng-show="!loadingState">
            <tr>
                <td><input type="checkbox" ng-checked="selectAll" ng-click="showInpuTime(true)"></td>
                <td ng-if="!IsshowCalendar">按照用户注册时间段筛选用户</td>
                <td ng-if="IsshowCalendar">

                    开始：<input type="text" required ng-model="model.BeginDate" placeholder="格式：2016-01-01" />    结束：<input type="text" required ng-model="model.EndDate" placeholder="格式：2016-01-02" />
                </td>
                <td >
                    <label ng-if="IsshowCalendar"><input name="condition1" type="radio" ng-value="true" ng-model="model.Cond1"  />或者 </label>
                    <label ng-if="IsshowCalendar" class="ml20"><input name="condition1" type="radio" ng-value="false" ng-model="model.Cond1" />并且 </label>
                </td>
            </tr>
            <tr>
                <td><input type="checkbox" ng-checked="selectAll" ng-click="showLevel()"></td>
                <td ng-if="!IsShowLevel">按照用户当前的等级筛选用户</td>
                <td ng-if="IsShowLevel">
                    <label>等级V1：<input type="checkbox" ng-model="model.V1" /></label>
                    <label class="ml20">等级V2：<input type="checkbox" ng-model="model.V2" /></label>
                    <label class="ml20">等级V3：<input type="checkbox" ng-model="model.V3" /></label>
                    <label class="ml20">等级V4：<input type="checkbox" ng-model="model.V4" /></label>
                    <label class="ml20">等级V5：<input type="checkbox" ng-model="model.V5" /></label>
                </td>
                <td>
                    <label ng-if="IsShowLevel"><input name="condition2" type="radio" ng-value="true" ng-model="model.Cond2" />或者 </label>
                    <label ng-if="IsShowLevel" class="ml20"><input name="condition2" ng-value="false" type="radio" ng-model="model.Cond2" />并且 </label>
                </td>
            </tr>
            <tr>
                <td><input type="checkbox" ng-checked="selectAll" ng-click="showVip()"></td>
                <td ng-if="!IsShowVip">按照用户的Vip状态筛选用户</td>
                <td ng-if="IsShowVip">
                    <label>普通用户：<input type="checkbox" ng-model="model.General" /></label>
                    <label class="ml20">VIP用户：<input type="checkbox" ng-model="model.Vip" /></label>
                </td>
                <td>
                    <label ng-if="IsShowVip"><input name="condition3" type="radio" ng-value="true" ng-model="model.Cond3" />或者 </label>
                    <label ng-if="IsShowVip" class="ml20"><input name="condition3" ng-value="false" type="radio" ng-model="model.Cond3" />并且 </label>
                </td>
            </tr>
            <tr>
                <td><input type="checkbox" ng-checked="selectAll" ng-click="showFrom()"></td>
                <td ng-if="!IsShowFrom">按照用户来自平台筛选用户</td>
                <td ng-if="IsShowFrom">
                    <label>Android：<input type="checkbox" ng-model="model.Android" /></label>
                    <label class="ml20">iOS：<input type="checkbox" ng-model="model.iOS" /></label>
                    <label class="ml20">PC：<input type="checkbox" ng-model="model.PC" /></label>
                </td>
                <td>
                    <label ng-if="IsShowFrom"><input name="condition4" type="radio" ng-value="true" ng-model="model.Cond4" />或者 </label>
                    <label ng-if="IsShowFrom" class="ml20"><input name="condition4" ng-value="false" type="radio" ng-model="model.Cond4" />并且 </label>
                </td>
            </tr>
        </tbody>
    </table>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" ng-click="ok()">确定</button>
    <button class="btn btn-warning" ng-click="cancel()">取消</button>
</div>